package com.restcloud.run.CP;

import com.restcloud.pojo.MedicalRecordSummary.MRSReceiver;
import com.restcloud.pojo.Public.ClinicalDocument;
import com.restcloud.utils.XmlUtil;

public class Query {

    /**
     * 护理计划
     * @param args
     */
    public static void main(String[] args) {
        ClinicalDocument clinical = new ClinicalDocument();

        clinical.setTitle("护理计划");

        clinical.setRecordTarget(new MRSReceiver("RCT","OP"));
        /**
         * 创建者
         */
        clinical.setAuthor(new MRSReceiver("AUT","OP"));
        /**
         * 保管机构
         */
        clinical.setCustodian(new MRSReceiver("CST",""));

        clinical.setParticipant(new MRSReceiver("NOT",""));

        clinical.setParticipant(new MRSReceiver("RPLC",""));

        clinical.setComponent(new MRSReceiver());

        String s = XmlUtil.beanToXml(clinical, ClinicalDocument.class, "GBK");
        System.out.println(s);
    }
}
